﻿using System;
using System.Text;
using HAVNet.Core;


namespace HAVNet.Intros.AST
{
    public class ASTExprUnary : ASTExpr
    {
        public ASTExprUnaryHead unaryHead   { get; set; }
        public ASTExprPrim      primary     { get; set; }

        public override string ToString ()
        {
            if (primary != null)
                return Lazy.toStringNN (unaryHead, "",  " ") + primary.ToString(); 
            else
                return "<UnaryExpression>"; // TODO: <- sacar esto cuando este completo
        }
    }
}
